package com.pw.ba.base.service.impl;

import com.pw.ba.base.pojo.GoodsDetail;
import com.pw.ba.base.service.GoodsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsDetailServiceImpl implements GoodsDetailService {

    @Autowired
    com.pw.ba.base.mapper.IGoodsDetailMapper IGoodsDetailMapper;

    @Override
    public List<GoodsDetail> goodsDetailById(int id) {
        List<GoodsDetail> goodsDetails = IGoodsDetailMapper.goodsDetailById(id);
        return goodsDetails;

    }

    @Override
    public List<GoodsDetail> goodsDetail() {
        List<GoodsDetail> goodsDetails = IGoodsDetailMapper.goodsDetail();
        return goodsDetails;
    }
}
